import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDesktopPane;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialog extends javax.swing.JDialog {
	private JDesktopPane jDesktopPane1;
	private JLabel jLabel1;
	private JTextField jTextField1;
    private String data;
	/**
	* Auto-generated main method to display this JDialog
	*/
	
	public NewJDialog(JFrame frame,String d) {
		super(frame);
		this.data = d;
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				jDesktopPane1 = new JDesktopPane();
				getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
				jDesktopPane1.setPreferredSize(new java.awt.Dimension(392, 154));
				{
					jTextField1 = new JTextField();
					jTextField1.setText(data.substring(3,data.length()));
					jDesktopPane1.add(jTextField1);
					jTextField1.setBounds(56, 42, 280, 28);
				}
				{
					jLabel1 = new JLabel();
					jDesktopPane1.add(jLabel1);
					jLabel1.setText("System manager:");
					jLabel1.setBounds(21, 7, 133, 28);
				}
			}
			this.setBounds(200, 200, 400, 170);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	

}

